package com.cuitrip.business.order.detail.ui.model;

import com.cuitrip.business.order.model.OrderItem;

import java.io.Serializable;

/**
 *
 * 订单的行程信息
 * Created by ak
 */
public class OrderInfoPartRenderData implements Serializable {
    //favorite name
    protected String orderServiceDate;
    protected String orderServicePersonNumber;
    protected String orderServiceDuration;



    public OrderInfoPartRenderData(String orderServiceDate, String orderServicePersonNumber,
                                   String orderServiceDuration) {
        this.orderServiceDate = orderServiceDate;
        this.orderServicePersonNumber = orderServicePersonNumber;
        this.orderServiceDuration = orderServiceDuration;
    }

    public String getOrderServiceDate() {
        return orderServiceDate;
    }

    public void setOrderServiceDate(String orderServiceDate) {
        this.orderServiceDate = orderServiceDate;
    }

    public String getOrderServicePersonNumber() {
        return orderServicePersonNumber;
    }

    public void setOrderServicePersonNumber(String orderServicePersonNumber) {
        this.orderServicePersonNumber = orderServicePersonNumber;
    }

    public String getOrderServiceDuration() {
        return orderServiceDuration;
    }

    public void setOrderServiceDuration(String orderServiceDuration) {
        this.orderServiceDuration = orderServiceDuration;
    }

    public static OrderInfoPartRenderData getInstance(OrderItem orderItem) {
        OrderInfoPartRenderData result = new OrderInfoPartRenderData(orderItem.getServiceDate(), orderItem.getBuyerNum(),
                orderItem.getServiceTime());
        return result;
    }
}
